﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.Managers {

    public class AlgebraicCurveManager {

        public static function BaseCoinDooberValue(_arg1:String):Number{
            var _local3:Number;
            var _local2:Number = parseFloat(_arg1);
            if (_local2){
                _local3 = (5 + (Math.max(Math.ceil((_local2 / 5)), 0) * 5));
                if (_local2 == 54){
                    _local3 = (_local3 + 20);
                };
                return (_local3);
            };
            return (0);
        }
        public static function grant3CoinDoobers(_arg1:String):Number{
            var _local2:Number = parseFloat(_arg1);
            if ((((_local2 >= 1)) && ((_local2 <= 15)))){
                return (100);
            };
            return (0);
        }
        public static function grant4CoinDoobers(_arg1:String):Number{
            var _local2:Number = parseFloat(_arg1);
            if ((((_local2 >= 16)) && ((_local2 <= 45)))){
                return (100);
            };
            return (0);
        }
        public static function grant5CoinDoobers(_arg1:String):Number{
            var _local2:Number = parseFloat(_arg1);
            if ((((_local2 >= 46)) && ((_local2 <= 54)))){
                return (100);
            };
            return (0);
        }
        public static function EnergyDoober1(_arg1:String):Number{
            var _local3:Number;
            var _local2:Number = parseFloat(_arg1);
            if (_local2){
                _local3 = (0.14 + (Math.max(Math.ceil((_local2 / 10)), 0) * 0.02));
                if (_local2 == 54){
                    _local3 = (_local3 + 0.04);
                };
                return ((_local3 * 100));
            };
            return (0);
        }
        public static function EnergyDoober2(_arg1:String):Number{
            var _local3:Number;
            var _local2:Number = parseFloat(_arg1);
            if (_local2){
                _local3 = (0.04 + (Math.max(Math.ceil((_local2 / 5)), 0) * 0.01));
                if (_local2 == 54){
                    _local3 = (_local3 + 0.03);
                };
                return ((_local3 * 100));
            };
            return (0);
        }
        public static function EnergyDoober3(_arg1:String):Number{
            var _local3:Number;
            var _local2:Number = parseFloat(_arg1);
            if (_local2){
                _local3 = Math.max(Math.ceil((-0.0005 + (Math.max(Math.ceil((_local2 / 3)), 0) * 0.005))), 2);
                if (_local2 == 54){
                    _local3 = (_local3 + 0.01);
                };
                return (_local3);
            };
            return (0);
        }

    }
}//package Classes.Managers 
